import App from './App'
// import baseConfig from './request/config.js';

// Vue.prototype.$baseConfig = baseConfig;

// import tools from './utils/tools.js';
// Vue.prototype.$tools = tools;

import uView from '@/uni_modules/uview-ui';
Vue.use(uView);

import {
	parseTime
} from "@/utils/common";
Vue.prototype.parseTime = parseTime

import {
	hasPermi
} from "@/utils/permission.js";
Vue.prototype.hasPermi = hasPermi

Vue.filter('formatsNumber', function(value) {
	if (!value) return '0';
	const numStr = value.toString();
	return numStr.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
});

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif